<!DOCTYPE html>
<html xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"
      lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
主页
<shiro:hasRole name="manager">manager角色登录显示此内容<br/></shiro:hasRole>
<shiro:hasRole name="sys:gen:list">list<br/></shiro:hasRole>
<a shiro:hasRole="admin" href="admin.html">Administer the system</a><!-- 拥有该角色 -->
<span shiro:authenticated="true">
      <span>欢迎您： </span>
</span>
<span shiro:hasPermission="false">
      <span>欢迎您： </span>
</span>

</body>
</html>